all: compile run
	echo "make all"

compile:
	#xsc --gcc_compile_options -I/home/chenshixuan/workland/mycode/switchboard/switchboard/switchboard/cpp my_dpi_brige.cc 
	xsc --gcc_compile_options -I../switchboard/cpp my_dpi_brige.cc 
run:
	python3 run_sb.py
clean:
	rm -rf .Xil xsim.dir
	rm -f dump.vcd sp1.wdb webtalk* xelab* xsim* xvlog*
	rm -f *.so xsc.log xsc.pb

	rm -f *.q
	rm -f *.vcd
	rm -rf obj_dir build
	#rm -f data_out.txt

run_sb: compile
	python3 ./run_sb.py --tool verilator
# xsim your_design -sv_lib ./libdpi_add.so